package com.micda.moroccoby.common.entities;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@org.hibernate.annotations.Proxy(lazy=false)
@Table(name="Facture")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class Facture implements Serializable {

        public Facture() {
	}
	
	@Column(name="Id", nullable=false)	
	@Id	
	private String id;
	
	@Column(name="DateEmission", nullable=true)	
        @Temporal(javax.persistence.TemporalType.DATE)
	private java.util.Date dateEmission;
	
	@Column(name="DateReglement", nullable=true)	
        @Temporal(javax.persistence.TemporalType.DATE)
	private java.util.Date dateReglement;
	
	@Column(name="Montant", nullable=false)	
	private float montant;
	
	public void setId(String value) {
		this.id = value;
	}
	
	public String getId() {
		return id;
	}
	
	public void setDateEmission(java.util.Date value) {
		this.dateEmission = value;
	}
	
	public java.util.Date getDateEmission() {
		return dateEmission;
	}
	
	public void setDateReglement(java.util.Date value) {
		this.dateReglement = value;
	}
	
	public java.util.Date getDateReglement() {
		return dateReglement;
	}
	
	public void setMontant(float value) {
		this.montant = value;
	}
	
	public float getMontant() {
		return montant;
	}
	
        @Override
	public String toString() {
		return String.valueOf(getId());
	}
	
}
